package com.fkcai.hansoul.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fkcai.hansoul.model.dto.post.PostCommentDto;
import com.fkcai.hansoul.model.dto.post.PostCommentReplyDto;
import com.fkcai.hansoul.model.vo.post.PostCommentReplyVo;
import com.fkcai.hansoul.model.vo.post.PostCommentVo;

import java.awt.print.Pageable;

public interface CommentReplyService {
	
	/**
	 * 创建帖子评论
	 * @param postCommentDto 帖子评论参数
	 */
	PostCommentVo createPostComment(PostCommentDto postCommentDto);
	
	/**
	 * 根据帖子 id 获取帖子评论
	 * @param postId 帖子 id
	 */
	Page<PostCommentVo> getPostCommentByPostId(Integer postId, int page, int size);
	
	/**
	 * 创建帖子评论回复
	 * @param postCommentReplyDto 帖子评论回复参数
	 */
	PostCommentReplyVo createPostCommentReply(PostCommentReplyDto postCommentReplyDto);
	
	/**
	 * 根据评论 id 获取帖子评论回复
	 * @param commentId 帖子 id
	 */
	Page<PostCommentReplyVo> getPostCommentReplyByPostId(Integer commentId, int page, int size);
	
}
